package ui;

import java.awt.Color;
import java.awt.Frame;
import java.awt.geom.RoundRectangle2D;

import ui.listeners.CheckerBoardWindowListener;

import com.sun.awt.AWTUtilities;

/**
 * Specialization of the AWT Frame class. This is the base frame for all the UI
 * elements.
 * 
 * @author Team Titanium
 */
public class CheckerBoardWindow extends Frame {

	/**
	 * Generated SVUID. This member is required by the Serializable parent
	 * class.
	 */
	private static final long serialVersionUID = -8073954181576481941L;

	/**
	 * Builds a new checker board window and adds a listener that will close the
	 * program when it is closed from the operating system, and a listener that
	 * will close the program when the escape key is struck.
	 */
	public CheckerBoardWindow() {
		super("jCheckers");
		this.addWindowListener(new CheckerBoardWindowListener());
	}
}
